<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/generic/taglibs.jsp"%>
<s:layout-render name="/WEB-INF/jsp/generic/layout.jsp">

	<s:layout-component name="pageContent">
	<div class="content myspace">

		<h2>
			<fmt:message bundle="${bundle}" key="common.myspace" />
		</h2>
		
		<s:errors globalErrorsOnly="true" />

		<fieldset>
			<legend><fmt:message bundle="${bundle}" key="myspace.changepassword" /></legend>
			<s:form action="${actionBean.url }">
				<div>
					<s:label name="oldPassword.lbl" for="oldPassword" />
					<s:password id="oldPassword" name="oldPassword" />
					<s:errors field="oldPassword" />
				</div>
				<div>
					<s:label name="newPassword.lbl" for="newPassword" />
					<s:password id="newPassword" name="newPassword" />
					<s:errors field="newPassword" />
				</div>
				<div>
					<s:label name="newPassword2.lbl" for="newPassword2" />
					<s:password id="newPassword2" name="newPassword2" />
					<s:errors field="newPassword2" />
				</div>
				<div>
					<s:submit name="changePassword" />
				</div>
			</s:form>
		</fieldset>
		
		<fieldset>
			<legend><fmt:message bundle="${bundle}" key="myspace.changedetails" /></legend>
			<s:form action="${actionBean.url }">
				<div>
					<s:label name="me.email.lbl" for="me.email" />
					<s:text name="me.email" id="me.email" disabled="disabled" />
					<s:hidden name="me.email" />
					<s:errors field="me.email" />
				</div>
				<div>
					<s:label name="me.lastName.lbl" for="me.lastName" />
					<s:text name="me.lastName" id="me.lastName" />
					<s:errors field="me.lastName" />
				</div>
				<div>
					<s:label name="me.firstName.lbl" for="me.firstName" />
					<s:text name="me.firstName" id="me.firstName" />
					<s:errors field="me.firstName" />
				</div>
				<div>
					<s:label name="me.sex.lbl" for="me.sex" />
					<s:select name="me.sex" id="me.sex">
						<s:options-enumeration enum="afcp.alumni.model.db.Member.Sex" />
					</s:select>
					<s:errors field="me.sex" />
				</div>
				<div>
					<s:label name="me.chineseName.lbl" for="me.chineseName" />
					<s:text name="me.chineseName" id="me.chineseName" />
					<s:errors field="me.chineseName" />
				</div>
				<div>
					<s:label name="me.birthDate.lbl" for="me.birthDate" />
					<s:text formatType="date" formatPattern="dd/MM/yyyy"
						name="me.birthDate" id="me.birthDate" />
					<s:errors field="me.birthDate" />
				</div>
				<div>
					<s:label name="me.parisTechEntranceYear.lbl" for="me.parisTechEntranceYear" />
					<s:text name="me.parisTechEntranceYear"
						id="me.parisTechEntranceYear" />
					<s:errors field="me.parisTechEntranceYear" />
				</div>
				<div>
					<s:label name="me.parisTechSchool.lbl" for="me.parisTechSchool" />
					<s:text name="me.parisTechSchool" id="me.parisTechSchool" />
					<s:errors field="me.parisTechSchool" />
				</div>
				<div>
					<s:label name="me.chineseUniversity.lbl" for="me.chineseUniversity" />
					<s:text name="me.chineseUniversity" id="me.chineseUniversity" />
					<s:errors field="me.chineseUniversity" />
				</div>
				<div>
					<s:label name="me.scholarship.lbl" for="me.scholarship" />
					<s:text name="me.scholarship" id="me.scholarship" />
					<s:errors field="me.scholarship" />
				</div>
				<div>
					<s:label name="me.domainInFrance.lbl" for="me.domainInFrance" />
					<s:text name="me.domainInFrance" id="me.domainInFrance" />
					<s:errors field="me.domainInFrance" />
				</div>
				<div>
					<s:label name="me.domainInChina.lbl" for="me.domainInChina" />
					<s:text name="me.domainInChina" id="me.domainInChina" />
					<s:errors field="me.domainInChina" />
				</div>
				<div>
					<s:label name="me.otherDiploma.lbl" for="me.otherDiploma" />
					<s:text name="me.otherDiploma" id="me.otherDiploma" />
					<s:errors field="me.otherDiploma" />
				</div>
				<div>
					<s:label name="me.diplomaUniversity.lbl" for="me.diplomaUniversity" />
					<s:text name="me.diplomaUniversity" id="me.diplomaUniversity" />
					<s:errors field="me.diplomaUniversity" />
				</div>
				<div>
					<s:label name="me.firstJobCountry.lbl" for="me.firstJobCountry" />
					<s:text name="me.firstJobCountry" id="me.firstJobCountry" />
					<s:errors field="me.firstJobCountry" />
				</div>
				<div>
					<s:label name="me.internship.lbl" for="me.internship" />
					<s:text name="me.internship" id="me.internship" />
					<s:errors field="me.internship" />
				</div>
				<div>
					<s:label name="me.firstJob.lbl" for="me.firstJob" />
					<s:text name="me.firstJob" id="me.firstJob" />
					<s:errors field="me.firstJob" />
				</div>
				<div>
					<s:label name="me.jobCountry.lbl" for="me.jobCountry" />
					<s:text name="me.jobCountry" id="me.jobCountry" />
					<s:errors field="me.jobCountry" />
				</div>
				<div>
					<s:label name="me.employer.lbl" for="me.employer" />
					<s:text name="me.employer" id="me.employer" />
					<s:errors field="me.employer" />
				</div>
				<div>
					<s:label name="me.phone.lbl" for="me.phone" />
					<s:text name="me.phone" id="me.phone" />
					<s:errors field="me.phone" />
				</div>
				<div>
					<s:label name="me.addressSupplement.lbl" for="me.addressSupplement" />
					<s:text name="me.addressSupplement" id="me.addressSupplement" />
					<s:errors field="me.addressSupplement" />
				</div>
				<div>
					<s:label name="me.address.lbl" for="me.address" />
					<s:text name="me.address" id="me.address" />
					<s:errors field="me.address" />
				</div>
				<div>
					<s:label name="me.country.lbl" for="me.country" />
					<s:text name="me.country" id="me.country" />
					<s:errors field="me.country" />
				</div>
				<div>
					<s:label name="me.weibo.lbl" for="me.weibo" />
					<s:text name="me.weibo" id="me.weibo" />
					<s:errors field="me.weibo" />
				</div>
				<div>
					<s:label name="me.weixin.lbl" for="me.weixin" />
					<s:text name="me.weixin" id="me.weixin" />
					<s:errors field="me.weixin" />
				</div>
				<div>
					<s:label name="me.notes.lbl" for="me.notes" />
					<s:text name="me.notes" id="me.notes" />
					<s:errors field="me.notes" />
				</div>
				<div>
					<s:submit name="updateMe" />
				</div>
				</s:form>
		</fieldset>

	</div>
	</s:layout-component>

</s:layout-render>